package com.yxzz.core.service.impl;

import com.yxzz.core.domain.PExamRecord;
import com.yxzz.core.mapper.PExamRecordMapper;
import com.yxzz.core.service.IPExamRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 病人检查记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-28
 */
@Service
public class PExamRecordServiceImpl implements IPExamRecordService 
{
    @Autowired
    private PExamRecordMapper pExamRecordMapper;

    /**
     * 查询病人检查记录
     * 
     * @param id 病人检查记录主键
     * @return 病人检查记录
     */
    @Override
    public PExamRecord selectPExamRecordById(Long id)
    {
        return pExamRecordMapper.selectPExamRecordById(id);
    }

    /**
     * 查询病人检查记录列表
     * 
     * @param pExamRecord 病人检查记录
     * @return 病人检查记录
     */
    @Override
    public List<PExamRecord> selectPExamRecordList(PExamRecord pExamRecord)
    {
        return pExamRecordMapper.selectPExamRecordList(pExamRecord);
    }

    /**
     * 新增病人检查记录
     * 
     * @param pExamRecord 病人检查记录
     * @return 结果
     */
    @Override
    public int insertPExamRecord(PExamRecord pExamRecord)
    {
        return pExamRecordMapper.insertPExamRecord(pExamRecord);
    }

    /**
     * 修改病人检查记录
     * 
     * @param pExamRecord 病人检查记录
     * @return 结果
     */
    @Override
    public int updatePExamRecord(PExamRecord pExamRecord)
    {
        return pExamRecordMapper.updatePExamRecord(pExamRecord);
    }

    /**
     * 批量删除病人检查记录
     * 
     * @param ids 需要删除的病人检查记录主键
     * @return 结果
     */
    @Override
    public int deletePExamRecordByIds(Long[] ids)
    {
        return pExamRecordMapper.deletePExamRecordByIds(ids);
    }

    /**
     * 删除病人检查记录信息
     * 
     * @param id 病人检查记录主键
     * @return 结果
     */
    @Override
    public int deletePExamRecordById(Long id)
    {
        return pExamRecordMapper.deletePExamRecordById(id);
    }
}
